<?php
/**
 * 
 */
namespace app\home\controller\consult;

use app\home\controller\Base;

class Show extends Base
{

	public function index(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'我的工单'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();

	}

	public function detail(){
		$id = input('id');
		
		$pageData = ['title'=>'工单详情'];
		$this->assign('pageData',$pageData);
		$this->assign('id',$id);
		return view();
	}

	public function submit(){

		$pageData = ['title'=>'提交\工单'];
		$this->assign('pageData',$pageData);
		return view();

	}

}